package com.zhuoyue.web.controller.monitor;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhuoyue.common.core.controller.BaseController;
import com.zhuoyue.common.core.domain.AjaxResult;
import com.zhuoyue.framework.web.domain.Server;

/**
 * 服务器监控
 *
 * @author hewenze
 */
@RestController
@Api(value = "服务器监控接口", tags = "服务器监控接口")
@RequestMapping("/monitor/server")
public class ServerController extends BaseController {
    @GetMapping()
    public AjaxResult getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return AjaxResult.success(server);
    }
}
